import request from '@/utils/request'

const SystemApi = {
  // 身份证识别
  uploadidcard: (data) => {
    return request({
      url: '/system/identify/idcard',
      header: {
        isToken: false
      },
      method: 'POST',
      data
    })
  },
  // 营业执照识别
  uploadbusinessLicense: (data) => {
    return request({
      url: '/system/identify/businessLicense',
      header: {
        isToken: false
      },
      method: 'POST',
      data
    })
  },
  // 人脸识别
  faceVerify: (data) => {
    return request({
      url: '/system/identify/faceVerify',
      header: {
        isToken: false
      },
      method: 'POST',
      data,
      status: false
    })
  },
  // 行政区划
  administration: () => {
    return request({
      url: '/system/area/tree',
      header: {
        isToken: false
      },
      method: 'GET',
    })
  },
  // 供应链注册提交
  registerSupply: (data) => {
    return request({
      url: '/system/supply-chain/api/registerSupply',
      header: {
        isToken: false
      },
      method: 'POST',
	    data
    })
  },
  // 供应链认证提交
  updateSupply: (data) => {
    return request({
      url: '/system/supply-chain/api/updateSupplyChain',
      method: 'POST',
	    data
    })
  },
  // 供应商认证提交
  updateSupplier: (data) => {
    return request({
      url: '/vms/supplier/update',
      method: 'PUT',
  	  data
    })
  },
  // 获取app下载地址
  getAppDownloadUrl: () => {
    return request({
      url: '/copm/short-link/page?pageNo=1&pageSize=-1',
      method: 'GET'
    })
  },
}
export default SystemApi